<div class="profiles">
	{foreach $profiles as $profile}
		<div class="profile">
			{$profile->User->property('name')} {$profile->User->property('fooname')}
			{if Gallery::avatar($profile->User->id)}
				<img src="{Gallery::avatar($profile->User->id)}"/>
			{else}
				<span>(Нет фото)</span>
			{/if}
		</div>
	{/foreach}
</div>